package cn.ywang;

import cn.ywang.Model.Member;
import cn.ywang.framework.Configuration;
import cn.ywang.framework.SimpleExecutor;
import cn.ywang.framework.SqlSession;
import cn.ywang.mapper.MemberMapper;

/**
 * Hello world!
 */
public class App {
	public static void main(String[] args) {
		SqlSession sqlSession = new SqlSession(new Configuration(), new SimpleExecutor());
		MemberMapper memberMapper = sqlSession.getMapper(MemberMapper.class);
		Member member = memberMapper.selectByPrimaryKey(1);
		System.out.println(member);
	}
}
